package cn.fly.demo;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

/**
 * @author mifei
 * @create 2018年04月11日
 **/
@Service
public class Student {

    @Value("${name}")
    private String name;
    private String age;
    private String id;
    private String a1;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public void doSomeThing(){
        System.out.println(name);
    }
}
